package com.gamer.p1;

import lombok.Data;

/**
 * @author 种鑫
 * @date 2024/4/25 17:06
 */
@Data
public class Response<T> {
    private int code=0;
    private String message ="";
    private T data;

    public Response(int code, String message, T data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }


    public static <X> Response ok(X data) {
        return new Response(0, "", data);
    }
}
